package com.newear.marathon.utils;

/**
 * 常量类
 *
 * @Author MicroBin
 * @create 2021/3/27 14:06
 */
public interface Constant
{

    /**
     * 后台用户密码
     */
    public String defaultPassword = "abc123";

    /**
     * captcha有效时间
     */
    public Long CAPTCHA_EXPIRY_SECOND = 60 * 5L;

    /**
     * token的key
     */
    public String ACCESS_TOKEN = "Access-Token";

    /**
     * 用户token缓存时长（1 hour）
     */
    public static final int TOKEN_EXPIRE_TIME = 30 * 60 * 1000;

    /**
     * 用户token缓存KEY前缀
     */
    public static final String PREFIX_USER_TOKEN = "PREFIX_USER_TOKEN_";

}
